package com.smsc.headend.connector.utils.concurrent;

import lombok.Getter;

import java.util.concurrent.CountDownLatch;

public class TaskCountDownLatch extends CountDownLatch {

    @Getter
    private String taskNo;
    /**
     * Constructs a {@code CountDownLatch} initialized with the given count.
     *
     * @param count the number of times {@link #countDown} must be invoked
     *              before threads can pass through {@link #await}
     * @throws IllegalArgumentException if {@code count} is negative
     */
    public TaskCountDownLatch(int count, String taskNo) {
        super(count);
        this.taskNo = taskNo;
    }

}
